const mongoose=require("mongoose");
const Schema=mongoose.Schema;
const logSchema=new Schema({
    author:{
        type:Schema.Types.ObjectId,
        ref:"user"
    },
    content:String,
    date:{
        type:Date,
        default:Date.now
    },
    logcom:{
        type:Schema.Types.ObjectId,
        ref:"logcomment"
    }
})
const log=mongoose.model("log",logSchema);
module.exports=log;